package com.itheima.reggie.entity.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 菜品DTO
 *
 * @Author Vsunks.v
 * @Date 2022/8/15 9:48
 * @Blog blog.sunxiaowei.net/996.mba
 * @Description: 菜品DTO，兼顾VO职责
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DishDto extends Dish {


    // 口味信息
    private List<DishFlavor> flavors;

    // 菜品分类名称。按照规范，该属性需要放在VO中
    private String categoryName;

}
